/**
* @author Ucar Sahin
*
* 31.05.2011
* ILoginService.java
* 
*/

package at.fhv.easyDietWeb.client.loginService;

import at.fhv.easyDietWeb.shared.util.wrappers.UserWrapper;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 * Remote Service Interface for the login.
 * @author Sahin
 *
 */

@RemoteServiceRelativePath("LoginService")
public interface ILoginService extends RemoteService
{
	/**
	 * tries to login at the server
	 * @param username username of the user
	 * @param pwd password of the user
	 * @return
	 */
	UserWrapper validateLogin(String username, String pwd);
	
	/**
	 * asks the server for an existing login
	 * @return
	 */
	UserWrapper checkSession();
}